<?php

$views = elgg_get_config('views');
$tools = $views->extensions['groups/tool_latest'];

echo 'Priority of Group Tools:';
foreach ($tools as $priority => $view) {
	if ($view != 'groups/tool_latest') {
		echo '<label>' . $view . '</label>';
		echo elgg_view('input/text', array(
			'name' => "params[tools:$view]",
			'value' => $priority
		));
	}
}